import { createRouter, createWebHashHistory, createWebHistory, RouteRecordRaw } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import PubLic from '@/components/public.vue'

const routes: Array<RouteRecordRaw> = [
	{
		path: '/',
		redirect:'/login',
	},
	{
		path: '/login',
		name: 'login',
		component: () => import(/* webpackChunkName: "about" */ '../views/loginView.vue')
	},
	{
		path: '/',
		component: PubLic,
		children: [
			{
				path: '/temp/:paramsID',
				name: 'temp',
				component: ()=>import('../views/template/temp.vue')
			},
			{
				path: '/home',
				name: 'home',
				component: HomeView
			},
			{
				path: '/configManagement/couponRules',
				name: 'couponRules',
				component: () => import(/* webpackChunkName: "level2" */ '../views/configManagement/couponRules.vue'),
			},
			{
				path: '/configManagement/couponRules',
				name: 'couponRules',
				component: () => import(/* webpackChunkName: "level3" */ '../views/configManagement/couponRules.vue'),
			},

			{
				path: '/oneTwo',
				name: 'oneTwo',
				component: () => import(/* webpackChunkName: "level2" */ '../views/one/oneTwo.vue'),
			},
			{
				path: '/AboutView',
				name: 'AboutView',
				component: () => import(/* webpackChunkName: "level2" */ '../views/AboutView.vue'),
			},
			{
				path: '/oneThree',
				name: 'oneThree',
				component: () => import(/* webpackChunkName: "level3" */ '../views/one/oneThree.vue'),
			},
			{
				path: '/oneFour',
				name: 'oneFour',
				component: () => import(/* webpackChunkName: "level3" */ '../views/one/oneFour.vue'),
			},
			{
				path: '/oneFive',
				name: 'oneFive',
				component: () => import(/* webpackChunkName: "level3" */ '../views/one/oneFive.vue'),
			},
			{
				path: '/twoOne',
				name: 'twoOne',
				component: () => import(/* webpackChunkName: "level3" */ '../views/two/twoOne.vue'),
			},
			{
				path: '/twoTwo',
				name: 'twoTwo',
				component: () => import(/* webpackChunkName: "level3" */ '../views/two/twoTwo.vue'),
			}
			,
			{
				path: '/twoTree',
				name: 'twoTree',
				component: () => import(/* webpackChunkName: "level3" */ '../views/two/twoTree.vue'),
			}
			,
			{
				path: '/twoFour',
				name: 'twoFour',
				component: () => import(/* webpackChunkName: "level3" */ '../views/two/twoFour.vue'),
			}
			,
			{
				path: '/twoFive',
				name: 'twoFive',
				component: () => import(/* webpackChunkName: "level3" */ '../views/two/twoFive.vue'),
			}
			,
			{
				path: '/twoSix',
				name: 'twoSix',
				component: () => import(/* webpackChunkName: "level3" */ '../views/two/twoSix.vue'),
			}
			,
			{
				path: '/threeOne',
				name: 'threeOne',
				component: () => import(/* webpackChunkName: "level3" */ '../views/three/threeOne.vue'),
			}
			,
			{
				path: '/threeTwo',
				name: 'threeTwo',
				component: () => import(/* webpackChunkName: "level3" */ '../views/three/threeTwo.vue'),
			}
			,
			{
				path: '/threeThree',
				name: 'threeThree',
				component: () => import(/* webpackChunkName: "level3" */ '../views/three/threeThree.vue'),
			}
			,
			{
				path: '/fourOne',
				name: 'fourOne',
				component: () => import(/* webpackChunkName: "level3" */ '../views/four/fourOne.vue'),
			}
			,
			{
				path: '/fourTwo',
				name: 'fourTwo',
				component: () => import(/* webpackChunkName: "level3" */ '../views/four/fourTwo.vue'),
			}
			,
			{
				path: '/fiveOne',
				name: 'fiveOne',
				component: () => import(/* webpackChunkName: "level3" */ '../views/five/fiveOne.vue'),
			}
			,
			{
				path: '/fiveTwo',
				name: 'fiveTwo',
				component: () => import(/* webpackChunkName: "level3" */ '../views/five/fiveTwo.vue'),
			}
			,
			{
				path: '/sixOne',
				name: 'sixOne',
				component: () => import(/* webpackChunkName: "level3" */ '../views/six/sixOne.vue'),
			}
			,
			{
				path: '/sixTwo',
				name: 'sixTwo',
				component: () => import(/* webpackChunkName: "level3" */ '../views/six/sixTwo.vue'),
			}
			,
			{
				path: '/sixThree',
				name: 'sixThree',
				component: () => import(/* webpackChunkName: "level3" */ '../views/six/sixThree.vue'),
			}
			,
			{
				path: '/sixFour',
				name: 'sixFour',
				component: () => import(/* webpackChunkName: "level3" */ '../views/six/sixFour.vue'),
			}
			,
			{
				path: '/sevenOne',
				name: 'sevenOne',
				component: () => import(/* webpackChunkName: "level3" */ '../views/seven/sevenOne.vue'),
			}
			,
			{
				path: '/sevenTwo',
				name: 'sevenTwo',
				component: () => import(/* webpackChunkName: "level3" */ '../views/seven/sevenTwo.vue'),
			}
			,
			{
				path: '/sevenThree',
				name: 'sevenThree',
				component: () => import(/* webpackChunkName: "level3" */ '../views/seven/sevenThree.vue'),
			}
		]
	},

	
]

const router = createRouter({
	history: createWebHistory(),
	routes
})

export default router




